import React from 'react'
import Parent from './Parent'
import { Context } from './context'

export default function App() {
  // !#1 Context.Provider 配合 value 提供数据
  return (
    <Context.Provider
      value={{
        name: 'xxx',
      }}
    >
      <div>
        App
        <hr />
        <Parent />
      </div>
    </Context.Provider>
  )
}
